<div class="menu">
<?php  echo $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
</div>
<div class="groups index">
	 <div align="center"><?php echo $this->Html->image('grupos_titulo.png', array('alt'=> __('Grados', true), 'border' => '0'));?></div>
	<?php echo $this->Html->link($this->Html->image('add_grupo.png', array('alt'=> __('Agregar Grupo', true), 'border' => '0')),
												'../groups/add/',array('escape' => false));?>
	
	<table class="tabla_formulario" cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('nombre');?></th>			
	</tr>
	<?php
		$i = 0;
		foreach ($groups as $group):
		$class = null;
		if ($i++ % 2 == 0) 
		{
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $group['Group']['nombre']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $group['Group']['id'])); ?>
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $group['Group']['id'])); ?>
			<?php echo $this->Html->link(__('Eliminar', true), array('action' => 'delete', $group['Group']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $group['Group']['id'])); ?>
		</td>
	</tr>
	
	<?php endforeach;?>
	</table>
	
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('P&aacute;gina %page% de %pages%, viendo %current% registros de un total de %count% empezando %start%, terminanado %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('Anterior', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('Siguiente', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>